import { Injectable } from '@nestjs/common';
import { Segment } from '@prisma/client';
import { PrismaService } from 'src/common/db/prisma.service';

@Injectable()
export class SegmentService {
    constructor(private readonly prisma: PrismaService) { }

    async create(segment: Segment) {
        return this.prisma.segment.create({
            data: segment,
        });
    }
}
